package com.gs.cd.service.tenant.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.gs.cd.service.tenant.model.SysTenantOwnProject;
import com.gs.cd.service.tenant.mapper.SysTenantOwnProjectMapper;
import com.gs.cd.service.tenant.service.SysTenantOwnProjectService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author seven
 * @since 2020-12-22
 */
@Service
public class SysTenantOwnProjectServiceImpl extends ServiceImpl<SysTenantOwnProjectMapper, SysTenantOwnProject> implements SysTenantOwnProjectService {

    @Override
    public List<SysTenantOwnProject> listByTenantCode(String tenantCode) {
        return list(new QueryWrapper<SysTenantOwnProject>().lambda()
                .eq(SysTenantOwnProject::getTenantCode, tenantCode));
    }
}
